package com.testapp.bluetoothtest08.cipher.entity;


import com.testapp.bluetoothtest08.cipher.entity.user.UserScanCodeData;

import java.io.Serializable;
import java.util.ArrayList;

public class ScanCodeFirstRequest implements Serializable {
    public String A_;
    public String T;
    public String ic;
    public String SN;
    public String D;
    public String T1;
    public String T2;
    public int flag = 0;
    public boolean flag2 = false;
    public ArrayList<String> d=new ArrayList<>();

    public ScanCodeFirstRequest(){
    }

    public ScanCodeFirstRequest(UserScanCodeData userData){
        this.A_ = userData.A_.toString();
        this.T = userData.T.toString();
        this.ic = userData.ic.toString();
        this.SN = userData.SN.toString();
        this.D = userData.D.toString();
        this.T1 = userData.T1.toString();
        this.T2 = userData.T2.toString();
        this.d.add(userData.dA.toString());
        this.d.add(userData.dT.toString());
        this.d.add(userData.dT1.toString());
        this.d.add(userData.dT2.toString());
        this.d.add(userData.dT2_.toString());
        this.d.add(userData.dT3.toString());
        this.d.add(userData.dic.toString());
        this.d.add(userData.dSN1.toString());
        this.d.add(userData.dSN2.toString());
        this.d.add(userData.dD.toString());
        this.flag = userData.flag;
        this.flag2 = userData.flag2;
    }

    public void out(){
        System.out.println("A_ = "+this.A_);
        System.out.println("T = "+this.T);
        System.out.println("ic = "+this.ic);
        System.out.println("SN = "+this.SN);
        System.out.println("D = "+this.D);
        System.out.println("T1 = "+this.T1);
        System.out.println("T2 = "+this.T2);
        System.out.println("flag = "+this.flag);
        System.out.println("d = "+this.d);
    }
}
